//
//  YHNetwork.h
//  DirectorActor
//
//  Created by MinwenYi on 14-9-30.
//  Copyright (c) 2014年 MinwenYi. All rights reserved.
//

#import <Foundation/Foundation.h>


@protocol NOWlan <NSObject>

- (void)thereIsNoWlan;

@end

typedef void(^success)(NSMutableDictionary *response);
typedef void(^failure)(NSError *failure);
typedef NS_ENUM(NSInteger,RequestType)
{
    RequestTypePost,
    RequestTypeGet
};

@interface YHNetwork : NSObject

@property (nonatomic,strong) NSString *YHHost;
@property (nonatomic,assign) id<NOWlan> reachDelegate;
+ (void)getInformationWithReguestType:(RequestType)type WithParameters:(NSMutableDictionary *)params  WithApi:(NSString *)Api WhenSuccess:(success)success WhenFailure:(failure)failure;

@end
